home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11198 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  747 b 

  1. Path: user2.infinet.com!not-for-mail
  2. From: rubin@user2.infinet.com (Danial Rubin)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: hash table keyed by strings in C
  5. Date: 22 Mar 1996 10:04:16 -0500
  6. Organization: InfiNet
  7. Message-ID: <4iufhg$5v5@user2.infinet.com>
  8. References: <0lIEcF200VQA0Q1W80@andrew.cmu.edu>
  9. NNTP-Posting-Host: user.infinet.com
  10.  
  11. >I need to implement a hashing function (in C) that returns a unique key
  12. >to a hash table, given a string as an input.
  13. >
  14.  
  15. Check out the Feb '95 issue of C/C++ Users Journal.  There is an article
  16. in there about associative arrays by Mcclung.  It appears this is exactally
  17. what you are looking for already written for you.  You can ftp the source
  18. code from ftp.uu.net in /published/cuj/1995/feb95.tar.Z...
  19.  
  20.     - Dan
  21.